function names = extract_nodes(q)

% ----------------------------------------------
% This function is designed to extract the names
% of the nodes from an OPENED gml file.  The gml
% file must be imported via import_yed.  Call
% this output q.
%
% USAGE:
% names = extract_nodes(q);
% ----------------------------------------------

names = {};

for i = 1:length(q.node_info.label)
    names{end + 1} = q.node_info.label{i};
end

% DONE